#include <iostream>
#include "NioSocketAcceptor.h"
using namespace std;
#include "MydeCodeFilterChain1.h"
#include "MyIohander.h"

int main(){
    IoAcceptor *acceptor = new NioSocketAcceptor(8);
    acceptor->addFilterChainLast(new MydeCodeFilterChain1("mydecodechain"));
    acceptor->setHandler(new MyIohander());
    //acceptor->bind();
    acceptor->bind("12345","10.212.1.225");

    return 0;
}
